<template>
  <div id="Newtab">
    <el-table :data="data" style="width: 100%" title="按商品汇总账单">
      <el-table-column prop="real_estate_name" label="楼盘名称" align="center">
      </el-table-column>
      <el-table-column prop="goods_name" label="商品名称" align="center">
      </el-table-column>
      <el-table-column prop="goods_type" label="商品类型" align="center">
      </el-table-column>
      <!-- <el-table-column prop="startdate" label="开盘时间" align="center">
      </el-table-column>
      <el-table-column prop="enddate" label="结束时间" align="center">
      </el-table-column> -->
      <el-table-column prop="total" label="订单总额" align="center">
      </el-table-column>
      <el-table-column prop="disponse_total" label="退款总额" align="center">
      </el-table-column>
      <el-table-column prop="" label="操作" align="center">
        <template slot-scope="scope">
          <i class="el-icon-edit see" @click="details(scope.row)">查看</i>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "Newtab",
  props: ["data"],
  methods: {
    details(row) {
      console.log(row.listings_id);
      this.$emit("selectDet", row);
    },
  },
  created() {
    // console.log(this.data);
  },
};
</script>

<style>
</style>